#ifndef XMAKEARCHIVES_H
#define XMAKEARCHIVES_H

#include "wiki.h"

class XMakeArchives : public Wiki
{
public:
    XMakeArchives();

    // Wiki interface
public:
    virtual QString name() override;
    virtual QString prefix() override;
    WIKI_AUTOLOAD
    WIKI_AUTOLOAD_FIRST
    WIKI_USE_URL
    virtual QStringList searching(const QString &text) override;
    virtual QString content(const QString &text) override;

private:
    QList<QString> m_titles;
    QMap<QString, QString> m_archives;
    void add_archive(QString title, QString link);
};

#endif // XMAKEARCHIVES_H
